import os
import time
import configparser

DELAY=20
def moveUp():
    result = os.popen("adb devices").read()
    print(result)
    os.system("adb shell input swipe 100 1200 100 500")
    print(DELAY)
    time.sleep(DELAY)
    moveUp()

def init():
    parser=configparser.ConfigParser()
    parser.read("./config.cfg")
    global DELAY
    DELAY=parser.get("DEFAULT","play_seconds")
    print("init "+DELAY)
    DELAY=int(DELAY)

init()
moveUp()
